#include <stdio.h>
#include <stdlib.h>

#define SIZE	100
typedef struct{
	int* data;
	int length;
}List;

void ListInit(List* L)
{
	L->data =(int*)malloc(sizeof(int)*SIZE);
	L->length =0;
}

int DeletList(List* L,int i)
{
	int j;
	if(i<1||i>L->length)	return -1;
	for(j =i;j<=L->length-1;j++)
		L->data[j-1] =L->data[j];
	L->length --;
	return 1;
}

void Input(List* L,int n)
{
	int i;
	for(i =0;i<n;i++)
		scanf_s("%d ",&L->data[i]);
}

void Output(List* L)
{
	int i;
	printf("\n");
	for(i =0;i<L->length;i++)
		printf("%d",L->data[i]);
}

int main(void)
{
	List list;
	ListInit(&list);
	scanf_s("%d",&list.length);
	Input(&list,list.length);
	Output(&list);
	DeletList(&list,2);
	Output(&list);
	while(1);
	return 0;
}